<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include APPLICATION_PATH."/models/News.php";
class KinhDoanh_NewsController extends Zend_Controller_Action {
    public function init() {
        $bootstrap = $this->getInvokeArg("bootstrap");
        $this->aConfig = $bootstrap->getOptions();
        $this->view->aConfig = $this->aConfig;
        $this->modelMapper= new Model_NewsMapper();
        $this->model= new Model_News();
    } 
    public function newsdetailAction(){
        $this->_helper->layout()->disableLayout();
        if($this->_request->isPost()){
            $newsid= $this->_getParam("news_id","");
            $this->modelMapper->find($newsid,$this->model);
          
            echo '' . $this->model->getTitle() . '[]' . $this->model->getDescription() .  '[]' . $this->model->getContent() . '';
            //Zend_Debug::dump($newsid);
            exit;
        }
        
    }
}
